The standard header <string> must be #included to allow this.